<?php
use dmstr\widgets\Menu;
echo Menu::widget(
            [
                'options' => ['class' => 'sidebar-menu'],
                'items' => [
                    ['label' => 'Menu', 'options' => ['class' => 'header']],
                    [
                        'label' => Yii::t('app', '活动列表'),
                        'url' => ['/activity/index'],
                        'icon' => 'fa  fa-female',
                        'active' => 'activity' === Yii::$app->controller->id,
                        //'visible' => \Yii::$app->user->can('activity/index'),
                    ],
                    [
                        'label' => Yii::t('app', '活动状态'),
                        'url' => ['/'],
                        'icon' => 'fa fa-align-left',
                        'items' => [
                            [
                                'label' => Yii::t('app', '未进行活动'),
                                'url' => ['/activity/waitcheck'],
                                'icon' => 'fa fa-th-list',
                                'active' => 'activity' === Yii::$app->controller->id && 'waitcheck' === Yii::$app->controller->action->id,
                                // 'visible' => \Yii::$app->user->can('activity/waitcheck'),
                            ],

                            [
                                'label' => Yii::t('app', '正在进行活动'),
                                'url' => ['/activity/check'],
                                'icon' => 'fa  fa-indent',
                                'active' => 'activity' === Yii::$app->controller->id && 'check' === Yii::$app->controller->action->id,
                               // 'visible' => \Yii::$app->user->can('activity/check'),
                            ],
                            [
                                'label' => Yii::t('app', '已结束活动'),
                                'url' => ['/activity/uncheck'],
                                'icon' => 'fa fa-th-list',
                                'active' => 'activity' === Yii::$app->controller->id && 'uncheck' === Yii::$app->controller->action->id,
                                //'visible' => \Yii::$app->user->can('activity/uncheck'),
                            ],
                        ],
                    ],

                    [
                        'label' => Yii::t('app', '活动标签'),
                        'url' => ['/label/index'],
                        'icon' => 'fa  fa-hdd-o',
                        'active' => 'label' === Yii::$app->controller->id,
                        //'visible' => \Yii::$app->user->can('label/index'),
                    ],
                    [

                        'label' => Yii::t('app', '演讲嘉宾'),
                        'url' => ['/guest/index'],
                        'icon' => 'fa  fa-hdd-o',
                        'active' => 'guest' === Yii::$app->controller->id,
                        //'visible' => \Yii::$app->user->can('guest/index'),
                    ],

                    [
                        'label' => Yii::t('app', '报名类型'),
                        'url' => ['/custom-set/index'],
                        'icon' => 'fa  fa-hdd-o',
                        'active' => 'custom-set' === Yii::$app->controller->id,
                        //'visible' => \Yii::$app->user->can('label/index'),
                    ],







                ],



                  

            ]
            
        )

?>